package com.xiaoyg.singleFactory;

import com.xiaoyg.singleFactory.factory.ChartFactory;
import com.xiaoyg.singleFactory.product.IChart;

/**
 * @author xiaoyg
 * @Title: Client
 * @ProjectName design_pattern
 * @Description: TODO
 * @date 2019/2/1916:53
 */
public class Client {

    public static void main(String[] args) {
        IChart chart;
        chart = ChartFactory.getChart("histogram");
        chart.display();
    }

}
